package com.xdan.monitoringservice.config;

import com.xdan.monitoringservice.entity.ResourceEntity;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;

/**
 * @author:
 * @since: 2023/9/15 14:44
 **/
@Data
@Configuration
@ConfigurationProperties("monitoring.service")
public class MyConfig {
    private Long listeningInterval;
    private String targetUrl;
    private String buyUrl;
    private String apiKey;
    private ArrayList<String> keywords;
    private ArrayList<ResourceEntity> buyList;
    private String notificationsUrl;
    private String buySuccessUrl;
    private String buyErrorUrl;
    private String buyTemplate;
}